﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MsChart.aspx.cs" Inherits="public_MsChart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
        <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
        <link href="../CSS/main.css" rel="stylesheet" type="text/css" />
        <link href="../CSS/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="MainContentCommon">
        <div id="mcTitle" class="tit">&gt;&gt;&gt;统计图表</div>
         <table style='border-collapse: collapse; table-layout: fixed;text-align:left; width:100%' cellpadding="0" cellspacing="0" >
            <tr>
                <td>
                <div class="con">
                <div id="QueryDiv" style="vertical-align: top;">
                <div>图表条件设置:(提示: 纵坐标y,可以按住Shift或者Ctrl键进行多选)</div>
                横坐标x:<asp:DropDownList ID="xcolumn" runat="server" AutoPostBack="true" 
                    onselectedindexchanged="xcolumn_SelectedIndexChanged">
                </asp:DropDownList>
                纵坐标y:<asp:ListBox ID="ycolumn" runat="server" SelectionMode="Multiple"></asp:ListBox>
                统计方式:<asp:DropDownList ID="DDL_StatisticType" runat="server">
                <asp:ListItem Value="1">汇总</asp:ListItem>
                <asp:ListItem Value="2">平均</asp:ListItem>
                <asp:ListItem Value="3">数目</asp:ListItem>
                </asp:DropDownList>  
                <br />
                <asp:Label ID="timetype" runat="server" Text="时间段选择:" Visible="false"></asp:Label>
                <asp:DropDownList ID="DDL_TimeSelect" runat="server" Visible="false">
                <asp:ListItem Value="1">按日</asp:ListItem>
                <asp:ListItem Value="2">按周</asp:ListItem>
                <asp:ListItem Value="3">按月</asp:ListItem>
                <asp:ListItem Value="4">按季</asp:ListItem>
                <asp:ListItem Value="5">按年</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="start" runat="server" Text="起始时间:" Visible="false"></asp:Label>
                <asp:TextBox ID="txtStartTime" runat="server" Visible="false" onfocus="WdatePicker({readOnly:false,errDealMode:1});"></asp:TextBox>
                <asp:Label ID="end" runat="server" Text="结束时间:" Visible="false"></asp:Label>
                <asp:TextBox ID="txtEndTime" runat="server" Visible="false" onfocus="WdatePicker({readOnly:false,errDealMode:1});"></asp:TextBox>
                 </div>
                </div>
                </td>
                </tr>
                <tr>
                <td>
                <div class="con">
                <div id="QueryDiv" class="QueryDiv" style="vertical-align: top;">
                <div>图表界面设置:</div>
                图表类型:<asp:DropDownList ID="charttype" runat="server">
                <asp:ListItem Value="1">柱状图</asp:ListItem>
                <asp:ListItem Value="2">折线图</asp:ListItem>
                <asp:ListItem Value="3">饼状图</asp:ListItem>
                </asp:DropDownList>
                显示方式:<asp:DropDownList ID="DDL_Show3D" runat="server">
                <asp:ListItem Value="1">平面</asp:ListItem>
                <asp:ListItem Value="2">立体</asp:ListItem>               
                </asp:DropDownList>
                <asp:Label ID="Label1" Text="大小自适应:" runat="server" Visible="false"></asp:Label>
                <asp:CheckBox ID="chkAutoSize" runat="server" Visible="false" OnCheckedChanged="chkAutoSize_Changed" AutoPostBack="true"/>
                <%--<input id="chkAutoSize" type="checkbox" runat="server"/>--%>
                <asp:Label ID="lblWidth" Text="宽:" runat="server"></asp:Label>
                <asp:TextBox ID="txtWidth" runat="server" Width="35"></asp:TextBox>                
                <asp:Label ID="lblHeight" Text="高:" runat="server"></asp:Label>
                <asp:TextBox ID="txtHeight" runat="server" Width="35" ></asp:TextBox>
                <asp:Button ID="ZoomOut" runat="server" Text="放 大" onclick="BtnZoomOut_Click" />
                <asp:Button ID="ZoomIn" runat="server" Text="缩 小" onclick="BtnZoomIn_Click" />
                <asp:Button ID="BtnComOk" runat="server" Text="显 示" onclick="BtnCom_Click" CssClass="buttonface"/>
                <asp:Button ID="BtnDateOk" runat="server" Text="显 示" onclick="BtnDate_Click" Visible="false" CssClass="buttonface"/>
                <asp:Button ID="BtnBack" runat="server" Text="返 回" onclick="BtnBack_Click" CssClass="buttonface"/>
                 </div>
                </div>
                </td>
             </tr>
        </table>
    </div>
    <div>
        <asp:Chart ID="MsChart" runat="server">
<%--            <Series>
                <asp:Series Name="Series1">
                </asp:Series>
            </Series>--%>
            <Legends>
            <asp:Legend Alignment="Center" Docking="Bottom" Name="Legend1" Title="图 例">
            </asp:Legend>
            </Legends>

            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    </div>
    </form>

</body>
</html>
